import Vue from 'vue'
import App from './App.vue'
//element ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import MyHeader from './components/header.vue'
import Car from './components/car.vue'
import Myfoot from './components/foot.vue'
import axios from 'axios'
//引入mint-ui文件
import MintUI from 'mint-ui'
//再导入css文件 一定要引入 否则组建没有样式
import 'mint-ui/lib/style.css'
//引入vuex
import store from './components/store.js'

import router from './router'
//设置发送axios请求时保存session信息
axios.defaults.withCredentials=true

Vue.component('my-header', MyHeader)
Vue.component('my-car', Car)
Vue.component('my-foot', Myfoot)
axios.defaults.baseURL='http://127.0.0.1:3000/'
Vue.prototype.axios = axios
Vue.use(MintUI)
Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  store,
	router,
  render: h => h(App),
}).$mount('#app')
